{
}
-static gboolean
+static void
gdk_broadway_window_queue_antiexpose (GdkWindow *window,
cairo_region_t *area)
{
- return FALSE;
}
guint32
}
}
-static gboolean
+static void
gdk_offscreen_window_queue_antiexpose (GdkWindow *window,
cairo_region_t *area)
{
- return FALSE;
}
/**
gdk_window_process_updates_internal (GdkWindow *window)
{
GdkWindowImplClass *impl_class;
- gboolean save_region = FALSE;
GdkRectangle clip_box;
GdkWindow *toplevel;
cairo_region_get_extents (update_area, &clip_box);
expose_region = cairo_region_copy (update_area);
impl_class = GDK_WINDOW_IMPL_GET_CLASS (window->impl);
- save_region = impl_class->queue_antiexpose (window, update_area);
+ impl_class->queue_antiexpose (window, update_area);
impl_class->process_updates_recurse (window, expose_region);
cairo_region_destroy (expose_region);
}
- if (!save_region)
- cairo_region_destroy (update_area);
+
+ cairo_region_destroy (update_area);
}
window->in_update = FALSE;
/* Called before processing updates for a window. This gives the windowing
* layer a chance to save the region for later use in avoiding duplicate
- * exposes. The return value indicates whether the function has a saved
- * the region; if the result is TRUE, then the windowing layer is responsible
- * for destroying the region later.
+ * exposes.
*/
- gboolean (* queue_antiexpose) (GdkWindow *window,
- cairo_region_t *update_area);
+ void (* queue_antiexpose) (GdkWindow *window,
+ cairo_region_t *update_area);
/* Called to do the windowing system specific part of gdk_window_destroy(),
*
return FALSE;
}
-static gboolean
+static void
gdk_quartz_window_queue_antiexpose (GdkWindow *window,
cairo_region_t *area)
{
- return FALSE;
}
static void
return TRUE;
}
-static gboolean
+static void
gdk_wayland_window_queue_antiexpose (GdkWindow *window,
cairo_region_t *area)
{
- return FALSE;
}
static void
return NULL;
}
-static gboolean
+static void
_gdk_win32_window_queue_antiexpose (GdkWindow *window,
- cairo_region_t *area)
+ cairo_region_t *area)
{
HRGN hrgn = cairo_region_to_hrgn (area, 0, 0);
ValidateRgn (GDK_WINDOW_HWND (window), hrgn);
DeleteObject (hrgn);
-
- return FALSE;
}
static void
g_queue_push_tail (display_x11->translate_queue, item);
}
-gboolean
+void
_gdk_x11_window_queue_antiexpose (GdkWindow *window,
cairo_region_t *area)
{
GdkWindowQueueItem *item = g_new (GdkWindowQueueItem, 1);
- item->antiexpose_area = area;
+ item->antiexpose_area = cairo_region_reference (area);
gdk_window_queue (window, item);
-
- return TRUE;
}
void
void _gdk_x11_window_delete_property (GdkWindow *window,
GdkAtom property);
-gboolean _gdk_x11_window_queue_antiexpose (GdkWindow *window,
+void _gdk_x11_window_queue_antiexpose (GdkWindow *window,
cairo_region_t *area);
void _gdk_x11_window_translate (GdkWindow *window,
cairo_region_t *area,